package main

import (
	"fmt"
	"crypto/sha1"
)

func main() {
	data:=[]byte{'a','b','c','d','e'}
	result1:=sha1.Sum(data)
	fmt.Printf("%x\n", result1)

	hasher:=sha1.New()
	hasher.Write(data)
	result2:=hasher.Sum(nil)
	fmt.Printf("%x\n", result2)
}
